﻿#include "secondmathimplabc9.h"
#include "tools/base_math_tools.h"
SecondMathImplABC9::SecondMathImplABC9(QObject *parent)
{

}

const QString SecondMathImplABC9::fun()
{
    int num1,num2;
    do{
        num1 = BaseMathTools::generateRandomNumber(0, 100);
        num2 = BaseMathTools::generateRandomNumber(0, 100);
    }while(num1 - num2 <0 ||  num1 - num2 >100);
    QString temp =  QString::number(num1) + " "+STR_DESC_OPTION+" " +  QString::number(num2)+" =";
    return temp;
}
